package com.woniuxy.auth.service.impl;

import com.hc.entity.Perm;
import com.woniuxy.auth.mapper.PermMapper;
import com.woniuxy.auth.service.PermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName PermServiceImpl
 * @Description
 * @Author shanshan
 * @Date 2022/10/24 12:04
 * @Version 1.0
 **/
@Service
public class PermServiceImpl implements PermService {

    @Autowired
     private PermMapper permMapper;

    @Override
    public List<Perm> getByRoleId(int roleId) {
        return permMapper.getByRoleId(roleId);
    }

    @Override
    public List<Perm> getAll() {
        return permMapper.getAll();
    }
}